package com.cc.order.feign;

import com.cc.order.model.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/8/3 17:10
 */
@FeignClient(value = "item-service")//远程服务的名称  spring.application.name值
public interface ItemFeign {
    @GetMapping(value = "item/{id}")
    public Item queryItemById(@PathVariable("id") Long id);
}
